from flask import Flask

from .sqlalchemy import init_sqlalchemy, db
from .logger import init_logger
from .init_admin import init_admin, admin
from .init_login import init_login_manager, login_manager


def register_extensions(app: Flask) -> None:
    """ 注册扩展 """
    init_sqlalchemy(app)
    init_logger(app)
    init_admin(app)
    init_login_manager(app)
